﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CRM.Models.EquipmentTypes>" %>
<%@ Import Namespace="CRM.Models" %>

<% Html.DevExpress().ComboBox(settings =>
   {
       settings.Name = "EquipmentTypes";
       settings.CallbackRouteValues =
          new { Controller = "EquipmentCombobox", Action = "EquipmentTypesPartial" };
       settings.Properties.CallbackPageSize = 10;
       settings.Properties.TextField = "EquipmentTypeRu";
       settings.Properties.ValueField = "IdEquipmentType";
       settings.Properties.EnableCallbackMode = true;
       settings.Properties.ClientSideEvents.SelectedIndexChanged = "function (s, e) {  Vendors.PerformCallback(); }";
   }).BindList(DB.EquipmentTypes.ToList()).Bind(Model).GetHtml(); %>